package xin.marcher.module.label.domain.request;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 关联商品和标签接口请求
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductLabelRelationRequest implements Serializable {

    private static final long serialVersionUID = 5151075528233710624L;
    /**
     * 参与id(item/sku)
     */
    private String participantId;

    /**
     * 参与类型
     */
    private Integer participantType;

    /**
     * 标签id
     */
    private Long labelId;

    /**
     * 操作人
     */
    @NotNull(message = "操作人[operateUser]不能为空")
    private Integer operateUser = 1;

    public ProductLabelRelationRequest(String participantId, Integer participantType, Long labelId) {
        this.participantId = participantId;
        this.labelId = labelId;
        this.participantType = participantType;
    }
}